package cf.huzpsb.bcgod;

import net.md_5.bungee.BungeeCord;

public class AutoSaver implements Runnable {
    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(Main.save * 1000L);
            } catch (Exception e) {
                e.printStackTrace();
            }
            BungeeCord.getInstance().getLogger().info("§c定时保存数据开始!");
            Main.save();
            BungeeCord.getInstance().getLogger().info("§c定时保存数据成功!AwA");
        }
    }
}


